<?php
	mysql_connect("r.rdc.sae.sina.com.cn:3307","jlkxo4nn2o","h4mhwhwhhi4m10k0m15lixxj21hii5hmzlz2x5yy");
   	mysql_select_db("app_zhangzhai");
	$name = $_GET["name"];
	$telephone = $_GET["telephone"];
	$sql = "INSERT INTO k4 (name,telephone,prize) VALUES ('$name','$telephone','两张电影票')";
	$re = mysql_query($sql);
	$array1 = null;
	if($re){
		$array1[] = "提交成功";
		echo json_encode($array1);
	}else{
		$array1[] = "提交失败";
		echo json_encode($array1);
	}
	
	
	
	?>